package com.heima.review.controller;

import com.heima.common.dtos.ResponseResult;
import com.heima.model.review.CommentRepaySaveDto;
import com.heima.review.service.AdCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommentRepayController {

    @Autowired
    private AdCommentService adCommentService;

    /**
     * 发布回复
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/comment_repay/save")
    public ResponseResult saveCommentRepay(@RequestBody CommentRepaySaveDto dto){
        adCommentService.saveCommentRepay(dto);
        return ResponseResult.ok();
    }

}
